package Day09.Demo14;

/**
 * @author hyhWTX
 * @version 1.0
 * @date 2022年03月01日 19:05
 */


public class User {
    private  String name;//姓名
    private int money;//余额

    public User() {
    }

    public User(String name, int money) {
        this.name = name;
        this.money = money;
    }
    //展示一下当前用户有多少钱
    public void show(){
        System.out.println("我叫："+name+"，我有多少钱，"+money+"元");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
}
